package com.bite.springblog.pojo.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserLoginRequest {
    @Length(max = 20,min = 2,message = "用户名格式错误")
    @NotNull(message = "用户名为空")
    private String userName;
    @Length(max = 20,min = 3,message = "密码格式错误")
    @NotNull(message = "密码为空")
    private String password;
}
